package com.example.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.framwork.haoframwork.R;
import com.example.mvp.bean.Books;

import java.util.List;

public class Main1Adapter extends BaseQuickAdapter<Books.ResultDTO.DataDTO, BaseViewHolder> {

    public Main1Adapter(int layoutResId, @Nullable List<Books.ResultDTO.DataDTO> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Books.ResultDTO.DataDTO bean) {
       helper.setText(R.id.tv_item_name,bean.getTitle());
    }
}
